
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
<!--    <script src="__JS__/jquery.js"></script>-->
    <script src='__JS__/jquery-3.2.1.min.js'></script>
    <script src="__JS__/canvas-particle.js?v=1111"></script>
    <link href="__CSS__/login.css?v=111" rel="stylesheet" type="text/css" />
</head>
<body>

<div id="canvas-cont"></div>
<div class="login">
    <div class="box png">
        <div class="logo png">
            报名管理后台
        </div>
        <div class="input">
            <div class="log">


                <div class="name">
                    <label>用户名</label><input type="text" class="text" id="value_1" placeholder="用户名" name="name" required>
                </div>
                <div class="pwd">
                    <label>密　码</label><input type="password" class="text" id="value_2" placeholder="密码" name="psw" required>
                    <input type="button" class="submit" id="submit" tabindex="3" value="登录" onclick="mylogin()">

                </div>


            </div>
        </div>
    </div>
</div>
</body>
</html>
<script>
    CanvasParticle();
    function mylogin() {
        $.post('mylogin',{
                name:$("input[name='name']").val(),
                psw:$("input[name='psw']").val(),
            },
            function (responseText) {
          if (responseText=='1'){
              alert('账号或密码错误');
          }else if(responseText=='2'){
              alert('登陆成功');
              location.href='index';
          }else{
              alert('账号或密码错误');
          }
            }
        );
    }
</script>